//
//  AppDelegate+DoraemonKit.m
//  UbunGit_OC
//
//  Created by admin on 2019/3/11.
//  Copyright © 2019 admin. All rights reserved.
//

#import "AppDelegate+DoraemonKit.h"
#import "DoraemonHomeWindow.h"
#import <UGBox/Network+Order.h>

@implementation AppDelegate (DoraemonKit)

/**
 * 配置DoraemonKit
 */
-(void)configDoraemonKit{
    
#ifdef DEBUG
    NSLog(@"configDoraemonKit");
    
#pragma -- common
    [[DoraemonManager shareInstance] addPluginWithTitle:@"button布局" icon:@"doraemon_ui" desc:@"button布局" pluginName:@"DorUGAlignmentButtonPlugin" atModule:@"common"];
    
    [[DoraemonManager shareInstance] addPluginWithTitle:@"UITextFiel输入" icon:@"doraemon_ui" desc:@"UITextFiel输入" pluginName:@"" atModule:@"common" handle:^(NSDictionary * _Nonnull itemData) {
           Class cls1 = NSClassFromString(@"UGAlignmentTextFieldExampleViewController");
           UIViewController *vc =  [cls1 new];
           [DoraemonHomeWindow openPlugin:vc];
       }];
    
    
    [[DoraemonManager shareInstance] addPluginWithTitle:@"二维码扫描" icon:@"doraemon_ui" desc:@"二维码扫描" pluginName:@"" atModule:@"common" handle:^(NSDictionary * _Nonnull itemData) {
        Class cls1 = NSClassFromString(@"QQScanViewController");
        UIViewController *vc =  [cls1 new];
        [DoraemonHomeWindow openPlugin:vc];
    }];
    
    [[DoraemonManager shareInstance] addPluginWithTitle:@"富文本编辑" icon:@"doraemon_ui" desc:@"富文本编辑" pluginName:@"" atModule:@"common" handle:^(NSDictionary * _Nonnull itemData) {
          Class cls1 = NSClassFromString(@"RichTextViewViewController");
          UIViewController *vc =  [cls1 new];
          [DoraemonHomeWindow openPlugin:vc];
      }];
    
#pragma -- goods
    
    [[DoraemonManager shareInstance] addPluginWithTitle:@"商品详情编辑" icon:@"doraemon_ui" desc:@"商品详情编辑" pluginName:@"" atModule:@"goods" handle:^(NSDictionary * _Nonnull itemData) {
        Class cls1 = NSClassFromString(@"ProductDefVC");
        UIViewController *vc =  [cls1 new];
        [DoraemonHomeWindow openPlugin:vc];
    }];
    
    [[DoraemonManager shareInstance] addPluginWithTitle:@"商品详情编辑OC" icon:@"doraemon_ui" desc:@"商品详情编辑" pluginName:@"" atModule:@"goods" handle:^(NSDictionary * _Nonnull itemData) {
          Class cls1 = NSClassFromString(@"ProductEditVC");
          UIViewController *vc =  [cls1 new];
          [DoraemonHomeWindow openPlugin:vc];
      }];
    
    [[DoraemonManager shareInstance] addPluginWithTitle:@"商品分类列表" icon:@"doraemon_ui" desc:@"商品分类列表" pluginName:@"" atModule:@"goods" handle:^(NSDictionary * _Nonnull itemData) {
           Class cls1 = NSClassFromString(@"ProductCategoriesVC");
           UIViewController *vc =  [cls1 new];
           [DoraemonHomeWindow openPlugin:vc];
       }];
    [[DoraemonManager shareInstance] addPluginWithTitle:@"我的店铺" icon:@"doraemon_ui" desc:@"我的店铺" pluginName:@"" atModule:@"goods" handle:^(NSDictionary * _Nonnull itemData) {
        Class cls1 = NSClassFromString(@"HomeViewController");
        UIViewController *vc =  [cls1 new];
        [DoraemonHomeWindow openPlugin:vc];
    }];
 

#pragma -- welcon
    [[DoraemonManager shareInstance] addPluginWithTitle:@"欢迎页面" icon:@"doraemon_ui" desc:@"欢迎页面" pluginName:@"DorWelcomViewControllerPlugin" atModule:@"welcom"];
    [[DoraemonManager shareInstance] addPluginWithTitle:@"引导页" icon:@"doraemon_ui" desc:@"引导页" pluginName:@"DorGuideViewControllerPlugin" atModule:@"welcom"];
    
    
 #pragma -- copy
    [[DoraemonManager shareInstance] addPluginWithTitle:@"瀑布流代码" icon:@"doraemon_ui" desc:@"瀑布流代码" pluginName:@"DorWaterFallViewControllerPlugin" atModule:@"copy"];
    [[DoraemonManager shareInstance] addPluginWithTitle:@"可编辑CollectionView" icon:@"doraemon_ui" desc:@"瀑布流代码" pluginName:@"DorEditCollectionViewControllerPlugin" atModule:@"copy"];
    [[DoraemonManager shareInstance] addPluginWithTitle:@"可编辑Tableview" icon:@"doraemon_ui" desc:@"瀑布流代码" pluginName:@"DorEditTableViewControllerPlugin" atModule:@"copy"];
    
 

#pragma -- UI
    [[DoraemonManager shareInstance] addPluginWithTitle:@"轮播图" icon:@"doraemon_ui" desc:@"类似网易切换" pluginName:@"DoraemonBlockCollectionView" atModule:@"UI"];
    [[DoraemonManager shareInstance] addPluginWithTitle:@"BlockTabview" icon:@"doraemon_ui" desc:@"BlockTabview" pluginName:@"DorBlockTableviewTestVC" atModule:@"UI"];
    
    [[DoraemonManager shareInstance] addPluginWithTitle:@"btn 布局" icon:@"doraemon_ui" desc:@"BlockTabview" pluginName:@"DorUGAlignmentButtonPlugin" atModule:@"UI"];
    
 
#pragma -- 常用功能
    
 
    
    [[DoraemonManager shareInstance] addPluginWithTitle:@"登陆" icon:@"doraemon_ui" desc:@"登陆" pluginName:@"" atModule:@"常用功能" handle:^(NSDictionary * _Nonnull itemData) {
        Class cls1 = NSClassFromString(@"LoginViewController");
        UIViewController *vc =  [cls1 new];
        [DoraemonHomeWindow openPlugin:vc];
    }];

    [[DoraemonManager shareInstance] addPluginWithTitle:@"启动页" icon:@"doraemon_ui" desc:@"启动页" pluginName:@"DorWelcomViewController" atModule:@"常用功能"];
    [[DoraemonManager shareInstance] addPluginWithTitle:@"广告页" icon:@"doraemon_ui" desc:@"广告页" pluginName:@"DorDMViewController" atModule:@"常用功能"];
    
    [[DoraemonManager shareInstance] addPluginWithTitle:@"选择栏" icon:@"doraemon_ui" desc:@"类似网易切换" pluginName:@"DorBarcollectionView" atModule:@"常用功能"];
    
    [[DoraemonManager shareInstance] addPluginWithTitle:@"通讯录" icon:@"doraemon_netflow_list_select" desc:@"用于app内部环境切换功能" pluginName:@"DoraemonAddressBook" atModule:@"常用功能"];
    
    [[DoraemonManager shareInstance] addPluginWithTitle:@"腾讯视频" icon:@"doraemon_netflow_list_select" desc:@"用于腾讯SuperPlayer集成测试" pluginName:@"DoraemonSuperPlay" atModule:@"常用功能"];
    [[DoraemonManager shareInstance] addPluginWithTitle:@"弹框" icon:@"doraemon_netflow_list_select" desc:@"用于弹框测试" pluginName:@"DoraemonMBOrogressHUD" atModule:@"常用功能"];
    
    [[DoraemonManager shareInstance] addPluginWithTitle:@"相册选择" icon:@"doraemon_netflow_list_select" desc:@"用于TZimagePickviewcontroll" pluginName:@"DoraemonTZImagePick" atModule:@"常用功能"];
    
    [[DoraemonManager shareInstance] addPluginWithTitle:@"画图" icon:@"doraemon_netflow_list_select" desc:@"绘图" pluginName:@"DorUGDrawingView" atModule:@"常用功能"];
    
    [[DoraemonManager shareInstance] addPluginWithTitle:@"朋友圈" icon:@"doraemon_netflow_list_select" desc:@"朋友圈" pluginName:@"DorZoneViewPlugin" atModule:@"常用功能"];
    
    [[DoraemonManager shareInstance] addPluginWithTitle:@"弹幕" icon:@"doraemon_netflow_list_select" desc:@"弹幕" pluginName:@"DorDanmuViewPlugin" atModule:@"常用功能"];
    
    
    
    
#pragma -- 动画
    [[DoraemonManager shareInstance] addPluginWithTitle:@"常见动画" icon:@"doraemon_netflow_list_select" desc:@"SVGA动画" pluginName:@"DorAnimationPlugin" atModule:@"动画"];
    
     [[DoraemonManager shareInstance] addPluginWithTitle:@"SVGA动画" icon:@"doraemon_netflow_list_select" desc:@"SVGA动画" pluginName:@"DorSVGAPlayer" atModule:@"动画"];
    [[DoraemonManager shareInstance] addPluginWithTitle:@"lottie动画" icon:@"doraemon_netflow_list_select" desc:@"SVGA动画" pluginName:@"DorLOTViewController" atModule:@"动画"];
    
#pragma -- swiftUI
    [[DoraemonManager shareInstance] addPluginWithTitle:@"swiftUI" icon:@"doraemon_ui" desc:@"登陆" pluginName:@"" atModule:@"常用功能" handle:^(NSDictionary * _Nonnull itemData) {
          
        UIViewController *vc =  [[Wrapper new] landmarkListSwiftUI];
        [DoraemonHomeWindow openPlugin:vc];
      }];
    
 

    
    [[DoraemonManager shareInstance] installWithPid:@"c8c2f6002a41ef3db74422a888016ee6"];
    [[DoraemonManager shareInstance] install];
    
    
    

#endif
    
   
}
@end
